﻿@model Tasks.UI.Models.Account.PowerManageModel
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>授权管理</title>
    <link href="@Config.GetCssResourcePath("main.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.js")" type="text/javascript"></script>
</head>
<body>
    <div id="container">
        @using (Html.BeginForm())
        {
           
            <div class="navTitle">
                <ul>
                    <li class="Home SecondLast"><a href="#">
                        <div class="HomeIcon">
                        </div>
                        <font><font>权限</font></font></a></li><li class="Last"><span><font><font>分配角色</font></font></span></li>
                </ul>
            </div>
            <h1>
                <font class="">角色管理</font>
            </h1>
            <p class="intro">
                <font>对指定用户分配角色权限，分配多个角色具备多个角色的权限。</font>
            </p>
            <div class="cpsoso">
                <div class="cpsosoleft">
                    <button id="Submit1" class="" type="submit">
                        <span>保存并继续编辑</span>
                    </button>
                    <button id="btnCancel" class="" type="button" onclick="closeTab()">
                        <span>取消</span>
                    </button>
                </div>
            </div>
            @Html.OutputMessage(Model.Message, Model.MessageType)
       for (int i = 0; i < Model.PowerRoleList.Count; i++)
       {
           if (Model.PowerRoleList[i].IsPersonal == 1)
           {
               continue;
           }

           if (Model.chkItemsChecked[i])
           {
            <input type="checkbox" checked="checked" name="RoleID" value="@Model.PowerRoleList[i].RoleID" />
           }
           else
           {
            <input type="checkbox" name="RoleID" value="@Model.PowerRoleList[i].RoleID" />
           }
            @Model.PowerRoleList[i].Name<span>(@Model.PowerRoleList[i].Dspt)</span>
            <br />
       }     

            <div class="cpsoso">
                <div class="cpsosoleft">
                    <button id="Submit1" class="" type="submit">
                        <span>保存并继续编辑</span>
                    </button>
                    <button id="btnCancel" class="" type="button" onclick="closeTab()">
                        <span>取消</span>
                    </button>
                </div>
            </div>
             
        }
    </div>
</body>
</html>
